
/**
 * This is a generated class and is not intended for modification.  
 */
package com.model.valueObjects
{
import com.adobe.fiber.styles.IStyle;
import com.adobe.fiber.styles.Style;
import com.adobe.fiber.styles.StyleValidator;
import com.adobe.fiber.valueobjects.AbstractEntityMetadata;
import com.adobe.fiber.valueobjects.AvailablePropertyIterator;
import com.adobe.fiber.valueobjects.IPropertyIterator;
import mx.events.ValidationResultEvent;
import com.adobe.fiber.core.model_internal;
import com.adobe.fiber.valueobjects.IModelType;
import mx.events.PropertyChangeEvent;

use namespace model_internal;

[ExcludeClass]
internal class _VoScSatisfiedEntityMetadata extends com.adobe.fiber.valueobjects.AbstractEntityMetadata
{
    private static var emptyArray:Array = new Array();

    model_internal static var allProperties:Array = new Array("delivery_loc", "price_per_unit", "preDeliveredQty", "sales_con_date", "pro_total_price", "stamp_number", "available_do_qty", "serialnumber", "sales_con_status", "pro_qty", "currency_serialnumber_fk", "customer_serialnumber_fk", "warehouse_serialnumber_fk", "pro_name", "reserved_qty", "sc_qty", "pro_description", "isSelected", "sc_serialnumber", "part_number", "pro_serialnumber_fk", "sales_con_code", "po_detserialnumber", "sc_detserialnumber");
    model_internal static var allAssociationProperties:Array = new Array();
    model_internal static var allRequiredProperties:Array = new Array("delivery_loc", "price_per_unit", "preDeliveredQty", "sales_con_date", "pro_total_price", "stamp_number", "available_do_qty", "serialnumber", "sales_con_status", "pro_qty", "currency_serialnumber_fk", "customer_serialnumber_fk", "warehouse_serialnumber_fk", "pro_name", "reserved_qty", "sc_qty", "pro_description", "isSelected", "sc_serialnumber", "part_number", "pro_serialnumber_fk", "sales_con_code", "po_detserialnumber", "sc_detserialnumber");
    model_internal static var allAlwaysAvailableProperties:Array = new Array("delivery_loc", "price_per_unit", "preDeliveredQty", "sales_con_date", "pro_total_price", "stamp_number", "available_do_qty", "serialnumber", "sales_con_status", "pro_qty", "currency_serialnumber_fk", "customer_serialnumber_fk", "warehouse_serialnumber_fk", "pro_name", "reserved_qty", "sc_qty", "pro_description", "isSelected", "sc_serialnumber", "part_number", "pro_serialnumber_fk", "sales_con_code", "po_detserialnumber", "sc_detserialnumber");
    model_internal static var guardedProperties:Array = new Array();
    model_internal static var dataProperties:Array = new Array("delivery_loc", "price_per_unit", "preDeliveredQty", "sales_con_date", "pro_total_price", "stamp_number", "available_do_qty", "serialnumber", "sales_con_status", "pro_qty", "currency_serialnumber_fk", "customer_serialnumber_fk", "warehouse_serialnumber_fk", "pro_name", "reserved_qty", "sc_qty", "pro_description", "isSelected", "sc_serialnumber", "part_number", "pro_serialnumber_fk", "sales_con_code", "po_detserialnumber", "sc_detserialnumber");
    model_internal static var derivedProperties:Array = new Array();
    model_internal static var collectionProperties:Array = new Array("delivery_loc", "price_per_unit", "preDeliveredQty", "pro_total_price", "stamp_number", "available_do_qty", "pro_qty", "warehouse_serialnumber_fk", "po_detserialnumber");
    model_internal static var collectionBaseMap:Object;
    model_internal static var entityName:String = "VoScSatisfied";
    model_internal static var dependentsOnMap:Object;
    model_internal static var dependedOnServices:Array = new Array();

    
    model_internal var _delivery_locIsValid:Boolean;
    model_internal var _delivery_locValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _delivery_locIsValidCacheInitialized:Boolean = false;
    model_internal var _delivery_locValidationFailureMessages:Array;
    
    model_internal var _price_per_unitIsValid:Boolean;
    model_internal var _price_per_unitValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _price_per_unitIsValidCacheInitialized:Boolean = false;
    model_internal var _price_per_unitValidationFailureMessages:Array;
    
    model_internal var _preDeliveredQtyIsValid:Boolean;
    model_internal var _preDeliveredQtyValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _preDeliveredQtyIsValidCacheInitialized:Boolean = false;
    model_internal var _preDeliveredQtyValidationFailureMessages:Array;
    
    model_internal var _sales_con_dateIsValid:Boolean;
    model_internal var _sales_con_dateValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _sales_con_dateIsValidCacheInitialized:Boolean = false;
    model_internal var _sales_con_dateValidationFailureMessages:Array;
    
    model_internal var _pro_total_priceIsValid:Boolean;
    model_internal var _pro_total_priceValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _pro_total_priceIsValidCacheInitialized:Boolean = false;
    model_internal var _pro_total_priceValidationFailureMessages:Array;
    
    model_internal var _stamp_numberIsValid:Boolean;
    model_internal var _stamp_numberValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _stamp_numberIsValidCacheInitialized:Boolean = false;
    model_internal var _stamp_numberValidationFailureMessages:Array;
    
    model_internal var _available_do_qtyIsValid:Boolean;
    model_internal var _available_do_qtyValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _available_do_qtyIsValidCacheInitialized:Boolean = false;
    model_internal var _available_do_qtyValidationFailureMessages:Array;
    
    model_internal var _sales_con_statusIsValid:Boolean;
    model_internal var _sales_con_statusValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _sales_con_statusIsValidCacheInitialized:Boolean = false;
    model_internal var _sales_con_statusValidationFailureMessages:Array;
    
    model_internal var _pro_qtyIsValid:Boolean;
    model_internal var _pro_qtyValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _pro_qtyIsValidCacheInitialized:Boolean = false;
    model_internal var _pro_qtyValidationFailureMessages:Array;
    
    model_internal var _warehouse_serialnumber_fkIsValid:Boolean;
    model_internal var _warehouse_serialnumber_fkValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _warehouse_serialnumber_fkIsValidCacheInitialized:Boolean = false;
    model_internal var _warehouse_serialnumber_fkValidationFailureMessages:Array;
    
    model_internal var _pro_nameIsValid:Boolean;
    model_internal var _pro_nameValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _pro_nameIsValidCacheInitialized:Boolean = false;
    model_internal var _pro_nameValidationFailureMessages:Array;
    
    model_internal var _pro_descriptionIsValid:Boolean;
    model_internal var _pro_descriptionValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _pro_descriptionIsValidCacheInitialized:Boolean = false;
    model_internal var _pro_descriptionValidationFailureMessages:Array;
    
    model_internal var _part_numberIsValid:Boolean;
    model_internal var _part_numberValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _part_numberIsValidCacheInitialized:Boolean = false;
    model_internal var _part_numberValidationFailureMessages:Array;
    
    model_internal var _sales_con_codeIsValid:Boolean;
    model_internal var _sales_con_codeValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _sales_con_codeIsValidCacheInitialized:Boolean = false;
    model_internal var _sales_con_codeValidationFailureMessages:Array;
    
    model_internal var _po_detserialnumberIsValid:Boolean;
    model_internal var _po_detserialnumberValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _po_detserialnumberIsValidCacheInitialized:Boolean = false;
    model_internal var _po_detserialnumberValidationFailureMessages:Array;

    model_internal var _instance:_Super_VoScSatisfied;
    model_internal static var _nullStyle:com.adobe.fiber.styles.Style = new com.adobe.fiber.styles.Style();

    public function _VoScSatisfiedEntityMetadata(value : _Super_VoScSatisfied)
    {
        // initialize property maps
        if (model_internal::dependentsOnMap == null)
        {
            // depenents map
            model_internal::dependentsOnMap = new Object();
            model_internal::dependentsOnMap["delivery_loc"] = new Array();
            model_internal::dependentsOnMap["price_per_unit"] = new Array();
            model_internal::dependentsOnMap["preDeliveredQty"] = new Array();
            model_internal::dependentsOnMap["sales_con_date"] = new Array();
            model_internal::dependentsOnMap["pro_total_price"] = new Array();
            model_internal::dependentsOnMap["stamp_number"] = new Array();
            model_internal::dependentsOnMap["available_do_qty"] = new Array();
            model_internal::dependentsOnMap["serialnumber"] = new Array();
            model_internal::dependentsOnMap["sales_con_status"] = new Array();
            model_internal::dependentsOnMap["pro_qty"] = new Array();
            model_internal::dependentsOnMap["currency_serialnumber_fk"] = new Array();
            model_internal::dependentsOnMap["customer_serialnumber_fk"] = new Array();
            model_internal::dependentsOnMap["warehouse_serialnumber_fk"] = new Array();
            model_internal::dependentsOnMap["pro_name"] = new Array();
            model_internal::dependentsOnMap["reserved_qty"] = new Array();
            model_internal::dependentsOnMap["sc_qty"] = new Array();
            model_internal::dependentsOnMap["pro_description"] = new Array();
            model_internal::dependentsOnMap["isSelected"] = new Array();
            model_internal::dependentsOnMap["sc_serialnumber"] = new Array();
            model_internal::dependentsOnMap["part_number"] = new Array();
            model_internal::dependentsOnMap["pro_serialnumber_fk"] = new Array();
            model_internal::dependentsOnMap["sales_con_code"] = new Array();
            model_internal::dependentsOnMap["po_detserialnumber"] = new Array();
            model_internal::dependentsOnMap["sc_detserialnumber"] = new Array();

            // collection base map
            model_internal::collectionBaseMap = new Object()
            model_internal::collectionBaseMap["delivery_loc"] = "int";
            model_internal::collectionBaseMap["price_per_unit"] = "Number";
            model_internal::collectionBaseMap["preDeliveredQty"] = "int";
            model_internal::collectionBaseMap["pro_total_price"] = "Number";
            model_internal::collectionBaseMap["stamp_number"] = "String";
            model_internal::collectionBaseMap["available_do_qty"] = "int";
            model_internal::collectionBaseMap["pro_qty"] = "int";
            model_internal::collectionBaseMap["warehouse_serialnumber_fk"] = "int";
            model_internal::collectionBaseMap["po_detserialnumber"] = "int";
        }

        model_internal::_instance = value;
        model_internal::_delivery_locValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForDelivery_loc);
        model_internal::_delivery_locValidator.required = true;
        model_internal::_delivery_locValidator.requiredFieldError = "delivery_loc is required";
        //model_internal::_delivery_locValidator.source = model_internal::_instance;
        //model_internal::_delivery_locValidator.property = "delivery_loc";
        model_internal::_price_per_unitValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForPrice_per_unit);
        model_internal::_price_per_unitValidator.required = true;
        model_internal::_price_per_unitValidator.requiredFieldError = "price_per_unit is required";
        //model_internal::_price_per_unitValidator.source = model_internal::_instance;
        //model_internal::_price_per_unitValidator.property = "price_per_unit";
        model_internal::_preDeliveredQtyValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForPreDeliveredQty);
        model_internal::_preDeliveredQtyValidator.required = true;
        model_internal::_preDeliveredQtyValidator.requiredFieldError = "preDeliveredQty is required";
        //model_internal::_preDeliveredQtyValidator.source = model_internal::_instance;
        //model_internal::_preDeliveredQtyValidator.property = "preDeliveredQty";
        model_internal::_sales_con_dateValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForSales_con_date);
        model_internal::_sales_con_dateValidator.required = true;
        model_internal::_sales_con_dateValidator.requiredFieldError = "sales_con_date is required";
        //model_internal::_sales_con_dateValidator.source = model_internal::_instance;
        //model_internal::_sales_con_dateValidator.property = "sales_con_date";
        model_internal::_pro_total_priceValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForPro_total_price);
        model_internal::_pro_total_priceValidator.required = true;
        model_internal::_pro_total_priceValidator.requiredFieldError = "pro_total_price is required";
        //model_internal::_pro_total_priceValidator.source = model_internal::_instance;
        //model_internal::_pro_total_priceValidator.property = "pro_total_price";
        model_internal::_stamp_numberValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForStamp_number);
        model_internal::_stamp_numberValidator.required = true;
        model_internal::_stamp_numberValidator.requiredFieldError = "stamp_number is required";
        //model_internal::_stamp_numberValidator.source = model_internal::_instance;
        //model_internal::_stamp_numberValidator.property = "stamp_number";
        model_internal::_available_do_qtyValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForAvailable_do_qty);
        model_internal::_available_do_qtyValidator.required = true;
        model_internal::_available_do_qtyValidator.requiredFieldError = "available_do_qty is required";
        //model_internal::_available_do_qtyValidator.source = model_internal::_instance;
        //model_internal::_available_do_qtyValidator.property = "available_do_qty";
        model_internal::_sales_con_statusValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForSales_con_status);
        model_internal::_sales_con_statusValidator.required = true;
        model_internal::_sales_con_statusValidator.requiredFieldError = "sales_con_status is required";
        //model_internal::_sales_con_statusValidator.source = model_internal::_instance;
        //model_internal::_sales_con_statusValidator.property = "sales_con_status";
        model_internal::_pro_qtyValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForPro_qty);
        model_internal::_pro_qtyValidator.required = true;
        model_internal::_pro_qtyValidator.requiredFieldError = "pro_qty is required";
        //model_internal::_pro_qtyValidator.source = model_internal::_instance;
        //model_internal::_pro_qtyValidator.property = "pro_qty";
        model_internal::_warehouse_serialnumber_fkValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForWarehouse_serialnumber_fk);
        model_internal::_warehouse_serialnumber_fkValidator.required = true;
        model_internal::_warehouse_serialnumber_fkValidator.requiredFieldError = "warehouse_serialnumber_fk is required";
        //model_internal::_warehouse_serialnumber_fkValidator.source = model_internal::_instance;
        //model_internal::_warehouse_serialnumber_fkValidator.property = "warehouse_serialnumber_fk";
        model_internal::_pro_nameValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForPro_name);
        model_internal::_pro_nameValidator.required = true;
        model_internal::_pro_nameValidator.requiredFieldError = "pro_name is required";
        //model_internal::_pro_nameValidator.source = model_internal::_instance;
        //model_internal::_pro_nameValidator.property = "pro_name";
        model_internal::_pro_descriptionValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForPro_description);
        model_internal::_pro_descriptionValidator.required = true;
        model_internal::_pro_descriptionValidator.requiredFieldError = "pro_description is required";
        //model_internal::_pro_descriptionValidator.source = model_internal::_instance;
        //model_internal::_pro_descriptionValidator.property = "pro_description";
        model_internal::_part_numberValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForPart_number);
        model_internal::_part_numberValidator.required = true;
        model_internal::_part_numberValidator.requiredFieldError = "part_number is required";
        //model_internal::_part_numberValidator.source = model_internal::_instance;
        //model_internal::_part_numberValidator.property = "part_number";
        model_internal::_sales_con_codeValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForSales_con_code);
        model_internal::_sales_con_codeValidator.required = true;
        model_internal::_sales_con_codeValidator.requiredFieldError = "sales_con_code is required";
        //model_internal::_sales_con_codeValidator.source = model_internal::_instance;
        //model_internal::_sales_con_codeValidator.property = "sales_con_code";
        model_internal::_po_detserialnumberValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForPo_detserialnumber);
        model_internal::_po_detserialnumberValidator.required = true;
        model_internal::_po_detserialnumberValidator.requiredFieldError = "po_detserialnumber is required";
        //model_internal::_po_detserialnumberValidator.source = model_internal::_instance;
        //model_internal::_po_detserialnumberValidator.property = "po_detserialnumber";
    }

    override public function getEntityName():String
    {
        return model_internal::entityName;
    }

    override public function getProperties():Array
    {
        return model_internal::allProperties;
    }

    override public function getAssociationProperties():Array
    {
        return model_internal::allAssociationProperties;
    }

    override public function getRequiredProperties():Array
    {
         return model_internal::allRequiredProperties;   
    }

    override public function getDataProperties():Array
    {
        return model_internal::dataProperties;
    }

    override public function getGuardedProperties():Array
    {
        return model_internal::guardedProperties;
    }

    override public function getUnguardedProperties():Array
    {
        return model_internal::allAlwaysAvailableProperties;
    }

    override public function getDependants(propertyName:String):Array
    {
       if (model_internal::dataProperties.indexOf(propertyName) == -1)
            throw new Error(propertyName + " is not a data property of entity VoScSatisfied");  
            
       return model_internal::dependentsOnMap[propertyName] as Array;  
    }

    override public function getDependedOnServices():Array
    {
        return model_internal::dependedOnServices;
    }

    override public function getCollectionProperties():Array
    {
        return model_internal::collectionProperties;
    }

    override public function getCollectionBase(propertyName:String):String
    {
        if (model_internal::collectionProperties.indexOf(propertyName) == -1)
            throw new Error(propertyName + " is not a collection property of entity VoScSatisfied");  

        return model_internal::collectionBaseMap[propertyName];
    }

    override public function getAvailableProperties():com.adobe.fiber.valueobjects.IPropertyIterator
    {
        return new com.adobe.fiber.valueobjects.AvailablePropertyIterator(this);
    }

    override public function getValue(propertyName:String):*
    {
        if (model_internal::allProperties.indexOf(propertyName) == -1)
        {
            throw new Error(propertyName + " does not exist for entity VoScSatisfied");
        }

        return model_internal::_instance[propertyName];
    }

    override public function setValue(propertyName:String, value:*):void
    {
        if (model_internal::dataProperties.indexOf(propertyName) == -1)
        {
            throw new Error(propertyName + " is not a data property of entity VoScSatisfied");
        }

        model_internal::_instance[propertyName] = value;
    }

    override public function getMappedByProperty(associationProperty:String):String
    {
        switch(associationProperty)
        {
            default:
            {
                return null;
            }
        }
    }

    override public function getPropertyLength(propertyName:String):int
    {
        switch(propertyName)
        {
            default:
            {
                return 0;
            }
        }
    }

    override public function isAvailable(propertyName:String):Boolean
    {
        if (model_internal::allProperties.indexOf(propertyName) == -1)
        {
            throw new Error(propertyName + " does not exist for entity VoScSatisfied");
        }

        if (model_internal::allAlwaysAvailableProperties.indexOf(propertyName) != -1)
        {
            return true;
        }

        switch(propertyName)
        {
            default:
            {
                return true;
            }
        }
    }

    override public function getIdentityMap():Object
    {
        var returnMap:Object = new Object();

        return returnMap;
    }

    [Bindable(event="propertyChange")]
    override public function get invalidConstraints():Array
    {
        if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
        {
            return model_internal::_instance.model_internal::_invalidConstraints;
        }
        else
        {
            // recalculate isValid
            model_internal::_instance.model_internal::_isValid = model_internal::_instance.model_internal::calculateIsValid();
            return model_internal::_instance.model_internal::_invalidConstraints;        
        }
    }

    [Bindable(event="propertyChange")]
    override public function get validationFailureMessages():Array
    {
        if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
        {
            return model_internal::_instance.model_internal::_validationFailureMessages;
        }
        else
        {
            // recalculate isValid
            model_internal::_instance.model_internal::_isValid = model_internal::_instance.model_internal::calculateIsValid();
            return model_internal::_instance.model_internal::_validationFailureMessages;
        }
    }

    override public function getDependantInvalidConstraints(propertyName:String):Array
    {
        var dependants:Array = getDependants(propertyName);
        if (dependants.length == 0)
        {
            return emptyArray;
        }

        var currentlyInvalid:Array = invalidConstraints;
        if (currentlyInvalid.length == 0)
        {
            return emptyArray;
        }

        var filterFunc:Function = function(element:*, index:int, arr:Array):Boolean
        {
            return dependants.indexOf(element) > -1;
        }

        return currentlyInvalid.filter(filterFunc);
    }

    /**
     * isValid
     */
    [Bindable(event="propertyChange")] 
    public function get isValid() : Boolean
    {
        if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
        {
            return model_internal::_instance.model_internal::_isValid;
        }
        else
        {
            // recalculate isValid
            model_internal::_instance.model_internal::_isValid = model_internal::_instance.model_internal::calculateIsValid();
            return model_internal::_instance.model_internal::_isValid;
        }
    }

    [Bindable(event="propertyChange")]
    public function get isDelivery_locAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isPrice_per_unitAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isPreDeliveredQtyAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isSales_con_dateAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isPro_total_priceAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isStamp_numberAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isAvailable_do_qtyAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isSerialnumberAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isSales_con_statusAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isPro_qtyAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isCurrency_serialnumber_fkAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isCustomer_serialnumber_fkAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isWarehouse_serialnumber_fkAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isPro_nameAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isReserved_qtyAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isSc_qtyAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isPro_descriptionAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isIsSelectedAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isSc_serialnumberAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isPart_numberAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isPro_serialnumber_fkAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isSales_con_codeAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isPo_detserialnumberAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isSc_detserialnumberAvailable():Boolean
    {
        return true;
    }


    /**
     * derived property recalculation
     */
    public function invalidateDependentOnDelivery_loc():void
    {
        if (model_internal::_delivery_locIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfDelivery_loc = null;
            model_internal::calculateDelivery_locIsValid();
        }
    }
    public function invalidateDependentOnPrice_per_unit():void
    {
        if (model_internal::_price_per_unitIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfPrice_per_unit = null;
            model_internal::calculatePrice_per_unitIsValid();
        }
    }
    public function invalidateDependentOnPreDeliveredQty():void
    {
        if (model_internal::_preDeliveredQtyIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfPreDeliveredQty = null;
            model_internal::calculatePreDeliveredQtyIsValid();
        }
    }
    public function invalidateDependentOnSales_con_date():void
    {
        if (model_internal::_sales_con_dateIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfSales_con_date = null;
            model_internal::calculateSales_con_dateIsValid();
        }
    }
    public function invalidateDependentOnPro_total_price():void
    {
        if (model_internal::_pro_total_priceIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfPro_total_price = null;
            model_internal::calculatePro_total_priceIsValid();
        }
    }
    public function invalidateDependentOnStamp_number():void
    {
        if (model_internal::_stamp_numberIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfStamp_number = null;
            model_internal::calculateStamp_numberIsValid();
        }
    }
    public function invalidateDependentOnAvailable_do_qty():void
    {
        if (model_internal::_available_do_qtyIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfAvailable_do_qty = null;
            model_internal::calculateAvailable_do_qtyIsValid();
        }
    }
    public function invalidateDependentOnSales_con_status():void
    {
        if (model_internal::_sales_con_statusIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfSales_con_status = null;
            model_internal::calculateSales_con_statusIsValid();
        }
    }
    public function invalidateDependentOnPro_qty():void
    {
        if (model_internal::_pro_qtyIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfPro_qty = null;
            model_internal::calculatePro_qtyIsValid();
        }
    }
    public function invalidateDependentOnWarehouse_serialnumber_fk():void
    {
        if (model_internal::_warehouse_serialnumber_fkIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfWarehouse_serialnumber_fk = null;
            model_internal::calculateWarehouse_serialnumber_fkIsValid();
        }
    }
    public function invalidateDependentOnPro_name():void
    {
        if (model_internal::_pro_nameIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfPro_name = null;
            model_internal::calculatePro_nameIsValid();
        }
    }
    public function invalidateDependentOnPro_description():void
    {
        if (model_internal::_pro_descriptionIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfPro_description = null;
            model_internal::calculatePro_descriptionIsValid();
        }
    }
    public function invalidateDependentOnPart_number():void
    {
        if (model_internal::_part_numberIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfPart_number = null;
            model_internal::calculatePart_numberIsValid();
        }
    }
    public function invalidateDependentOnSales_con_code():void
    {
        if (model_internal::_sales_con_codeIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfSales_con_code = null;
            model_internal::calculateSales_con_codeIsValid();
        }
    }
    public function invalidateDependentOnPo_detserialnumber():void
    {
        if (model_internal::_po_detserialnumberIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfPo_detserialnumber = null;
            model_internal::calculatePo_detserialnumberIsValid();
        }
    }

    model_internal function fireChangeEvent(propertyName:String, oldValue:Object, newValue:Object):void
    {
        this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, propertyName, oldValue, newValue));
    }

    [Bindable(event="propertyChange")]   
    public function get delivery_locStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get delivery_locValidator() : StyleValidator
    {
        return model_internal::_delivery_locValidator;
    }

    model_internal function set _delivery_locIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_delivery_locIsValid;         
        if (oldValue !== value)
        {
            model_internal::_delivery_locIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "delivery_locIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get delivery_locIsValid():Boolean
    {
        if (!model_internal::_delivery_locIsValidCacheInitialized)
        {
            model_internal::calculateDelivery_locIsValid();
        }

        return model_internal::_delivery_locIsValid;
    }

    model_internal function calculateDelivery_locIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_delivery_locValidator.validate(model_internal::_instance.delivery_loc)
        model_internal::_delivery_locIsValid_der = (valRes.results == null);
        model_internal::_delivery_locIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::delivery_locValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::delivery_locValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get delivery_locValidationFailureMessages():Array
    {
        if (model_internal::_delivery_locValidationFailureMessages == null)
            model_internal::calculateDelivery_locIsValid();

        return _delivery_locValidationFailureMessages;
    }

    model_internal function set delivery_locValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_delivery_locValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_delivery_locValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "delivery_locValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get price_per_unitStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get price_per_unitValidator() : StyleValidator
    {
        return model_internal::_price_per_unitValidator;
    }

    model_internal function set _price_per_unitIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_price_per_unitIsValid;         
        if (oldValue !== value)
        {
            model_internal::_price_per_unitIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "price_per_unitIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get price_per_unitIsValid():Boolean
    {
        if (!model_internal::_price_per_unitIsValidCacheInitialized)
        {
            model_internal::calculatePrice_per_unitIsValid();
        }

        return model_internal::_price_per_unitIsValid;
    }

    model_internal function calculatePrice_per_unitIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_price_per_unitValidator.validate(model_internal::_instance.price_per_unit)
        model_internal::_price_per_unitIsValid_der = (valRes.results == null);
        model_internal::_price_per_unitIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::price_per_unitValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::price_per_unitValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get price_per_unitValidationFailureMessages():Array
    {
        if (model_internal::_price_per_unitValidationFailureMessages == null)
            model_internal::calculatePrice_per_unitIsValid();

        return _price_per_unitValidationFailureMessages;
    }

    model_internal function set price_per_unitValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_price_per_unitValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_price_per_unitValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "price_per_unitValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get preDeliveredQtyStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get preDeliveredQtyValidator() : StyleValidator
    {
        return model_internal::_preDeliveredQtyValidator;
    }

    model_internal function set _preDeliveredQtyIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_preDeliveredQtyIsValid;         
        if (oldValue !== value)
        {
            model_internal::_preDeliveredQtyIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "preDeliveredQtyIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get preDeliveredQtyIsValid():Boolean
    {
        if (!model_internal::_preDeliveredQtyIsValidCacheInitialized)
        {
            model_internal::calculatePreDeliveredQtyIsValid();
        }

        return model_internal::_preDeliveredQtyIsValid;
    }

    model_internal function calculatePreDeliveredQtyIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_preDeliveredQtyValidator.validate(model_internal::_instance.preDeliveredQty)
        model_internal::_preDeliveredQtyIsValid_der = (valRes.results == null);
        model_internal::_preDeliveredQtyIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::preDeliveredQtyValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::preDeliveredQtyValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get preDeliveredQtyValidationFailureMessages():Array
    {
        if (model_internal::_preDeliveredQtyValidationFailureMessages == null)
            model_internal::calculatePreDeliveredQtyIsValid();

        return _preDeliveredQtyValidationFailureMessages;
    }

    model_internal function set preDeliveredQtyValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_preDeliveredQtyValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_preDeliveredQtyValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "preDeliveredQtyValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get sales_con_dateStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get sales_con_dateValidator() : StyleValidator
    {
        return model_internal::_sales_con_dateValidator;
    }

    model_internal function set _sales_con_dateIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_sales_con_dateIsValid;         
        if (oldValue !== value)
        {
            model_internal::_sales_con_dateIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "sales_con_dateIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get sales_con_dateIsValid():Boolean
    {
        if (!model_internal::_sales_con_dateIsValidCacheInitialized)
        {
            model_internal::calculateSales_con_dateIsValid();
        }

        return model_internal::_sales_con_dateIsValid;
    }

    model_internal function calculateSales_con_dateIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_sales_con_dateValidator.validate(model_internal::_instance.sales_con_date)
        model_internal::_sales_con_dateIsValid_der = (valRes.results == null);
        model_internal::_sales_con_dateIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::sales_con_dateValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::sales_con_dateValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get sales_con_dateValidationFailureMessages():Array
    {
        if (model_internal::_sales_con_dateValidationFailureMessages == null)
            model_internal::calculateSales_con_dateIsValid();

        return _sales_con_dateValidationFailureMessages;
    }

    model_internal function set sales_con_dateValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_sales_con_dateValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_sales_con_dateValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "sales_con_dateValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get pro_total_priceStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get pro_total_priceValidator() : StyleValidator
    {
        return model_internal::_pro_total_priceValidator;
    }

    model_internal function set _pro_total_priceIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_pro_total_priceIsValid;         
        if (oldValue !== value)
        {
            model_internal::_pro_total_priceIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_total_priceIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get pro_total_priceIsValid():Boolean
    {
        if (!model_internal::_pro_total_priceIsValidCacheInitialized)
        {
            model_internal::calculatePro_total_priceIsValid();
        }

        return model_internal::_pro_total_priceIsValid;
    }

    model_internal function calculatePro_total_priceIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_pro_total_priceValidator.validate(model_internal::_instance.pro_total_price)
        model_internal::_pro_total_priceIsValid_der = (valRes.results == null);
        model_internal::_pro_total_priceIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::pro_total_priceValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::pro_total_priceValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get pro_total_priceValidationFailureMessages():Array
    {
        if (model_internal::_pro_total_priceValidationFailureMessages == null)
            model_internal::calculatePro_total_priceIsValid();

        return _pro_total_priceValidationFailureMessages;
    }

    model_internal function set pro_total_priceValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_pro_total_priceValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_pro_total_priceValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_total_priceValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get stamp_numberStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get stamp_numberValidator() : StyleValidator
    {
        return model_internal::_stamp_numberValidator;
    }

    model_internal function set _stamp_numberIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_stamp_numberIsValid;         
        if (oldValue !== value)
        {
            model_internal::_stamp_numberIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "stamp_numberIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get stamp_numberIsValid():Boolean
    {
        if (!model_internal::_stamp_numberIsValidCacheInitialized)
        {
            model_internal::calculateStamp_numberIsValid();
        }

        return model_internal::_stamp_numberIsValid;
    }

    model_internal function calculateStamp_numberIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_stamp_numberValidator.validate(model_internal::_instance.stamp_number)
        model_internal::_stamp_numberIsValid_der = (valRes.results == null);
        model_internal::_stamp_numberIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::stamp_numberValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::stamp_numberValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get stamp_numberValidationFailureMessages():Array
    {
        if (model_internal::_stamp_numberValidationFailureMessages == null)
            model_internal::calculateStamp_numberIsValid();

        return _stamp_numberValidationFailureMessages;
    }

    model_internal function set stamp_numberValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_stamp_numberValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_stamp_numberValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "stamp_numberValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get available_do_qtyStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get available_do_qtyValidator() : StyleValidator
    {
        return model_internal::_available_do_qtyValidator;
    }

    model_internal function set _available_do_qtyIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_available_do_qtyIsValid;         
        if (oldValue !== value)
        {
            model_internal::_available_do_qtyIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "available_do_qtyIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get available_do_qtyIsValid():Boolean
    {
        if (!model_internal::_available_do_qtyIsValidCacheInitialized)
        {
            model_internal::calculateAvailable_do_qtyIsValid();
        }

        return model_internal::_available_do_qtyIsValid;
    }

    model_internal function calculateAvailable_do_qtyIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_available_do_qtyValidator.validate(model_internal::_instance.available_do_qty)
        model_internal::_available_do_qtyIsValid_der = (valRes.results == null);
        model_internal::_available_do_qtyIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::available_do_qtyValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::available_do_qtyValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get available_do_qtyValidationFailureMessages():Array
    {
        if (model_internal::_available_do_qtyValidationFailureMessages == null)
            model_internal::calculateAvailable_do_qtyIsValid();

        return _available_do_qtyValidationFailureMessages;
    }

    model_internal function set available_do_qtyValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_available_do_qtyValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_available_do_qtyValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "available_do_qtyValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get serialnumberStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get sales_con_statusStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get sales_con_statusValidator() : StyleValidator
    {
        return model_internal::_sales_con_statusValidator;
    }

    model_internal function set _sales_con_statusIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_sales_con_statusIsValid;         
        if (oldValue !== value)
        {
            model_internal::_sales_con_statusIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "sales_con_statusIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get sales_con_statusIsValid():Boolean
    {
        if (!model_internal::_sales_con_statusIsValidCacheInitialized)
        {
            model_internal::calculateSales_con_statusIsValid();
        }

        return model_internal::_sales_con_statusIsValid;
    }

    model_internal function calculateSales_con_statusIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_sales_con_statusValidator.validate(model_internal::_instance.sales_con_status)
        model_internal::_sales_con_statusIsValid_der = (valRes.results == null);
        model_internal::_sales_con_statusIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::sales_con_statusValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::sales_con_statusValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get sales_con_statusValidationFailureMessages():Array
    {
        if (model_internal::_sales_con_statusValidationFailureMessages == null)
            model_internal::calculateSales_con_statusIsValid();

        return _sales_con_statusValidationFailureMessages;
    }

    model_internal function set sales_con_statusValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_sales_con_statusValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_sales_con_statusValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "sales_con_statusValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get pro_qtyStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get pro_qtyValidator() : StyleValidator
    {
        return model_internal::_pro_qtyValidator;
    }

    model_internal function set _pro_qtyIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_pro_qtyIsValid;         
        if (oldValue !== value)
        {
            model_internal::_pro_qtyIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_qtyIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get pro_qtyIsValid():Boolean
    {
        if (!model_internal::_pro_qtyIsValidCacheInitialized)
        {
            model_internal::calculatePro_qtyIsValid();
        }

        return model_internal::_pro_qtyIsValid;
    }

    model_internal function calculatePro_qtyIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_pro_qtyValidator.validate(model_internal::_instance.pro_qty)
        model_internal::_pro_qtyIsValid_der = (valRes.results == null);
        model_internal::_pro_qtyIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::pro_qtyValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::pro_qtyValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get pro_qtyValidationFailureMessages():Array
    {
        if (model_internal::_pro_qtyValidationFailureMessages == null)
            model_internal::calculatePro_qtyIsValid();

        return _pro_qtyValidationFailureMessages;
    }

    model_internal function set pro_qtyValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_pro_qtyValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_pro_qtyValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_qtyValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get currency_serialnumber_fkStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get customer_serialnumber_fkStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get warehouse_serialnumber_fkStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get warehouse_serialnumber_fkValidator() : StyleValidator
    {
        return model_internal::_warehouse_serialnumber_fkValidator;
    }

    model_internal function set _warehouse_serialnumber_fkIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_warehouse_serialnumber_fkIsValid;         
        if (oldValue !== value)
        {
            model_internal::_warehouse_serialnumber_fkIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "warehouse_serialnumber_fkIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get warehouse_serialnumber_fkIsValid():Boolean
    {
        if (!model_internal::_warehouse_serialnumber_fkIsValidCacheInitialized)
        {
            model_internal::calculateWarehouse_serialnumber_fkIsValid();
        }

        return model_internal::_warehouse_serialnumber_fkIsValid;
    }

    model_internal function calculateWarehouse_serialnumber_fkIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_warehouse_serialnumber_fkValidator.validate(model_internal::_instance.warehouse_serialnumber_fk)
        model_internal::_warehouse_serialnumber_fkIsValid_der = (valRes.results == null);
        model_internal::_warehouse_serialnumber_fkIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::warehouse_serialnumber_fkValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::warehouse_serialnumber_fkValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get warehouse_serialnumber_fkValidationFailureMessages():Array
    {
        if (model_internal::_warehouse_serialnumber_fkValidationFailureMessages == null)
            model_internal::calculateWarehouse_serialnumber_fkIsValid();

        return _warehouse_serialnumber_fkValidationFailureMessages;
    }

    model_internal function set warehouse_serialnumber_fkValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_warehouse_serialnumber_fkValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_warehouse_serialnumber_fkValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "warehouse_serialnumber_fkValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get pro_nameStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get pro_nameValidator() : StyleValidator
    {
        return model_internal::_pro_nameValidator;
    }

    model_internal function set _pro_nameIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_pro_nameIsValid;         
        if (oldValue !== value)
        {
            model_internal::_pro_nameIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_nameIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get pro_nameIsValid():Boolean
    {
        if (!model_internal::_pro_nameIsValidCacheInitialized)
        {
            model_internal::calculatePro_nameIsValid();
        }

        return model_internal::_pro_nameIsValid;
    }

    model_internal function calculatePro_nameIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_pro_nameValidator.validate(model_internal::_instance.pro_name)
        model_internal::_pro_nameIsValid_der = (valRes.results == null);
        model_internal::_pro_nameIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::pro_nameValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::pro_nameValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get pro_nameValidationFailureMessages():Array
    {
        if (model_internal::_pro_nameValidationFailureMessages == null)
            model_internal::calculatePro_nameIsValid();

        return _pro_nameValidationFailureMessages;
    }

    model_internal function set pro_nameValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_pro_nameValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_pro_nameValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_nameValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get reserved_qtyStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get sc_qtyStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get pro_descriptionStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get pro_descriptionValidator() : StyleValidator
    {
        return model_internal::_pro_descriptionValidator;
    }

    model_internal function set _pro_descriptionIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_pro_descriptionIsValid;         
        if (oldValue !== value)
        {
            model_internal::_pro_descriptionIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_descriptionIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get pro_descriptionIsValid():Boolean
    {
        if (!model_internal::_pro_descriptionIsValidCacheInitialized)
        {
            model_internal::calculatePro_descriptionIsValid();
        }

        return model_internal::_pro_descriptionIsValid;
    }

    model_internal function calculatePro_descriptionIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_pro_descriptionValidator.validate(model_internal::_instance.pro_description)
        model_internal::_pro_descriptionIsValid_der = (valRes.results == null);
        model_internal::_pro_descriptionIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::pro_descriptionValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::pro_descriptionValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get pro_descriptionValidationFailureMessages():Array
    {
        if (model_internal::_pro_descriptionValidationFailureMessages == null)
            model_internal::calculatePro_descriptionIsValid();

        return _pro_descriptionValidationFailureMessages;
    }

    model_internal function set pro_descriptionValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_pro_descriptionValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_pro_descriptionValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_descriptionValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get isSelectedStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get sc_serialnumberStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get part_numberStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get part_numberValidator() : StyleValidator
    {
        return model_internal::_part_numberValidator;
    }

    model_internal function set _part_numberIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_part_numberIsValid;         
        if (oldValue !== value)
        {
            model_internal::_part_numberIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "part_numberIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get part_numberIsValid():Boolean
    {
        if (!model_internal::_part_numberIsValidCacheInitialized)
        {
            model_internal::calculatePart_numberIsValid();
        }

        return model_internal::_part_numberIsValid;
    }

    model_internal function calculatePart_numberIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_part_numberValidator.validate(model_internal::_instance.part_number)
        model_internal::_part_numberIsValid_der = (valRes.results == null);
        model_internal::_part_numberIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::part_numberValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::part_numberValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get part_numberValidationFailureMessages():Array
    {
        if (model_internal::_part_numberValidationFailureMessages == null)
            model_internal::calculatePart_numberIsValid();

        return _part_numberValidationFailureMessages;
    }

    model_internal function set part_numberValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_part_numberValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_part_numberValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "part_numberValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get pro_serialnumber_fkStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get sales_con_codeStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get sales_con_codeValidator() : StyleValidator
    {
        return model_internal::_sales_con_codeValidator;
    }

    model_internal function set _sales_con_codeIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_sales_con_codeIsValid;         
        if (oldValue !== value)
        {
            model_internal::_sales_con_codeIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "sales_con_codeIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get sales_con_codeIsValid():Boolean
    {
        if (!model_internal::_sales_con_codeIsValidCacheInitialized)
        {
            model_internal::calculateSales_con_codeIsValid();
        }

        return model_internal::_sales_con_codeIsValid;
    }

    model_internal function calculateSales_con_codeIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_sales_con_codeValidator.validate(model_internal::_instance.sales_con_code)
        model_internal::_sales_con_codeIsValid_der = (valRes.results == null);
        model_internal::_sales_con_codeIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::sales_con_codeValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::sales_con_codeValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get sales_con_codeValidationFailureMessages():Array
    {
        if (model_internal::_sales_con_codeValidationFailureMessages == null)
            model_internal::calculateSales_con_codeIsValid();

        return _sales_con_codeValidationFailureMessages;
    }

    model_internal function set sales_con_codeValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_sales_con_codeValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_sales_con_codeValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "sales_con_codeValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get po_detserialnumberStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get po_detserialnumberValidator() : StyleValidator
    {
        return model_internal::_po_detserialnumberValidator;
    }

    model_internal function set _po_detserialnumberIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_po_detserialnumberIsValid;         
        if (oldValue !== value)
        {
            model_internal::_po_detserialnumberIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "po_detserialnumberIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get po_detserialnumberIsValid():Boolean
    {
        if (!model_internal::_po_detserialnumberIsValidCacheInitialized)
        {
            model_internal::calculatePo_detserialnumberIsValid();
        }

        return model_internal::_po_detserialnumberIsValid;
    }

    model_internal function calculatePo_detserialnumberIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_po_detserialnumberValidator.validate(model_internal::_instance.po_detserialnumber)
        model_internal::_po_detserialnumberIsValid_der = (valRes.results == null);
        model_internal::_po_detserialnumberIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::po_detserialnumberValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::po_detserialnumberValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get po_detserialnumberValidationFailureMessages():Array
    {
        if (model_internal::_po_detserialnumberValidationFailureMessages == null)
            model_internal::calculatePo_detserialnumberIsValid();

        return _po_detserialnumberValidationFailureMessages;
    }

    model_internal function set po_detserialnumberValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_po_detserialnumberValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_po_detserialnumberValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "po_detserialnumberValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get sc_detserialnumberStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }


     /**
     * 
     * @inheritDoc 
     */ 
     override public function getStyle(propertyName:String):com.adobe.fiber.styles.IStyle
     {
         switch(propertyName)
         {
            default:
            {
                return null;
            }
         }
     }
     
     /**
     * 
     * @inheritDoc 
     *  
     */  
     override public function getPropertyValidationFailureMessages(propertyName:String):Array
     {
         switch(propertyName)
         {
            case("delivery_loc"):
            {
                return delivery_locValidationFailureMessages;
            }
            case("price_per_unit"):
            {
                return price_per_unitValidationFailureMessages;
            }
            case("preDeliveredQty"):
            {
                return preDeliveredQtyValidationFailureMessages;
            }
            case("sales_con_date"):
            {
                return sales_con_dateValidationFailureMessages;
            }
            case("pro_total_price"):
            {
                return pro_total_priceValidationFailureMessages;
            }
            case("stamp_number"):
            {
                return stamp_numberValidationFailureMessages;
            }
            case("available_do_qty"):
            {
                return available_do_qtyValidationFailureMessages;
            }
            case("sales_con_status"):
            {
                return sales_con_statusValidationFailureMessages;
            }
            case("pro_qty"):
            {
                return pro_qtyValidationFailureMessages;
            }
            case("warehouse_serialnumber_fk"):
            {
                return warehouse_serialnumber_fkValidationFailureMessages;
            }
            case("pro_name"):
            {
                return pro_nameValidationFailureMessages;
            }
            case("pro_description"):
            {
                return pro_descriptionValidationFailureMessages;
            }
            case("part_number"):
            {
                return part_numberValidationFailureMessages;
            }
            case("sales_con_code"):
            {
                return sales_con_codeValidationFailureMessages;
            }
            case("po_detserialnumber"):
            {
                return po_detserialnumberValidationFailureMessages;
            }
            default:
            {
                return emptyArray;
            }
         }
     }

}

}
